const direactives = {
  focus: {
    mounted(el) {
      el.focus()
    },
  },
  // pos: {
  //   mounted(el, binding) {
  //     console.log(binding)
  //     el.style.top = binding.value + 'px'
  //   },
  //   updated(el, binding) {
  //     el.style.top = binding.value + 'px'
  //   },
  // }
  pos(el, binding) {
    console.log(binding, 'binding')
    el.style[binding.arg || 'top'] = binding.value + 'px'
  }
}
// v-focus
// v-pos="100"
// v-pos.left="100"


export default direactives